namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0104 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.SysTask", "LastestActionCode", c => c.String());
            AddColumn("dbo.SysTask", "LastestActionBy", c => c.Int());
            AddColumn("dbo.SysTask", "LastestActionByPosName", c => c.String());
            AddColumn("dbo.SysTask", "LastestActionByFullName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "ApprovedByPosName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "ApprovedByFullName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "RejectedByPosName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "RejectedByFullName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "CanceledByPosName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "CanceledByFullName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "SendBackByPosName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "SendBackByFullName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "ForwardByPosName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "ForwardByFullName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "ActionCode", c => c.String());
            AddColumn("dbo.SysTaskHistory", "ActionBy", c => c.Int());
            AddColumn("dbo.SysTaskHistory", "ActionByPosName", c => c.String());
            AddColumn("dbo.SysTaskHistory", "ActionByFullName", c => c.String());
        }
        
        public override void Down()
        {
            DropColumn("dbo.SysTaskHistory", "ActionByFullName");
            DropColumn("dbo.SysTaskHistory", "ActionByPosName");
            DropColumn("dbo.SysTaskHistory", "ActionBy");
            DropColumn("dbo.SysTaskHistory", "ActionCode");
            DropColumn("dbo.SysTaskHistory", "ForwardByFullName");
            DropColumn("dbo.SysTaskHistory", "ForwardByPosName");
            DropColumn("dbo.SysTaskHistory", "SendBackByFullName");
            DropColumn("dbo.SysTaskHistory", "SendBackByPosName");
            DropColumn("dbo.SysTaskHistory", "CanceledByFullName");
            DropColumn("dbo.SysTaskHistory", "CanceledByPosName");
            DropColumn("dbo.SysTaskHistory", "RejectedByFullName");
            DropColumn("dbo.SysTaskHistory", "RejectedByPosName");
            DropColumn("dbo.SysTaskHistory", "ApprovedByFullName");
            DropColumn("dbo.SysTaskHistory", "ApprovedByPosName");
            DropColumn("dbo.SysTask", "LastestActionByFullName");
            DropColumn("dbo.SysTask", "LastestActionByPosName");
            DropColumn("dbo.SysTask", "LastestActionBy");
            DropColumn("dbo.SysTask", "LastestActionCode");
        }
    }
}
